package com.pussinboots.morning.sync.exception;

public enum ExceptionEnum {

    MAX_MIN_POISION_ERROR(10001,"MaxList元素数量必须大于等于MinList"),
    LIST_NULL_ERROR(10002,"List对象不可以为NULL"),
    ;

    private String description;
    private int code;

    private ExceptionEnum (int code, String description) {
        this.description = description;
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
